package com.example.a513;

import android.os.Bundle;
import android.widget.ListView;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

import java.util.ArrayList;
import java.util.List;

import adpater.AnimationAdapterWithButton;
import entity.Animation;

public class ListViewFocus extends AppCompatActivity {
    private ListView listView ;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);
        setContentView(R.layout.activity_list_view_focus);
        List<Animation> list = Animation.getDefault();
        listView = findViewById(R.id.lv);
        AnimationAdapterWithButton adapter = new AnimationAdapterWithButton(this, list);
        listView.setAdapter(adapter);
    }
}